<template>
	<view class="control">
		<view class="top">
			<u--image width="100%"  src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/e5ebc9f3bdb2e84f85811df7ec994cb8e252aa7c.jpeg" mode="widthFix"></u--image>
		</view>
		
		<view class="list">
			<!-- @click="openDetail" -->
			<view class="item flex-align" v-for="(item,index) in jisolianlist" :key="item" @click="coach_center(item,index)">
				<view class="index">{{index+1}}</view>
				<view class="flex-align con">
					<view class="image">
						<u--image  width="100%" height="130rpx" :src="item.img" shape="circle"></u--image>
						<!-- <image mode="aspectFit" class="small" src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/c3d9ec46bec8cd3f02a5c9e0c2020af93119fa33.png"></image> -->
					</view>
					<view class="box">
						<view class="box-1 flex-align">
							<view class="name">{{item.name}}</view>
							<u-tag v-if="item.sex == 1" text="男" borderColor="#e5f0ff" bgColor="#e5f0ff" color="#016DFF"  size="mini"> </u-tag>
							<u-tag v-if="item.sex == 0"  text="女" borderColor="#e5f0ff" bgColor="#e5f0ff" color="#ff0000"  size="mini"> </u-tag>
							<!-- <u-tag text="从业10年" borderColor="#fff4e6" bgColor="#fff4e6" color="#FF8F05"  size="mini" > </u-tag> -->
						</view>
						<view class="box-2 flex-align">
							<uni-rate :size="15" :max="5" :value="item.value"></uni-rate>
							<!-- <view class="tag">游泳</view> -->
							<!-- <view class="tag">健身</view> -->
						</view>
						<view class="box-3">
							{{item.title}}
						</view>
						<view class="box-4 flex-align">
							<u-icon :size="14" name="bag-fill"></u-icon>
							<view>绍兴奥体</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import uniRate from "@/uni_modules/uni-rate/components/uni-rate/uni-rate.vue"
	export default {
		data() {
			return {
				jisolianlist:[
					{
						img:'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/eb7ee1375ede9758ee96df1f6419b07352c79701.jpeg',
						title:'羽毛球教练',
						name:'冯佳颖',
						value:'5',
						sex:0
						
					},
					{
						img:'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/79b2093730b0ce4352f46631c25fd5b44140894b.jpeg',
						title:'羽毛球教练',
						name:'吴青',
						value:"5",
						sex:0
					},
					// {
					// 	img:'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/506be28d80f4b1f076579e1a56e3a85058ac90e7.jpeg',
					// 	title:'篮球教练',
					// 	name:'李国泰',
					// 	value:"5",
					// 	sex:1
					// },
					{
						img:'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/c114651d755ed797d81f420ed5e297cfaffad588.jpeg',
						title:'篮球教练',
						name:'李杰庆',
						value:"5",
						sex:1
					},
					{
						img:'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/88f2003eb82f8566076c470135b29d62b647e41e.jpeg',
						title:'羽毛球教练',
						name:'李泽华',
						value:"5",
						sex:1
					},
					{
						img:'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/b18bbd5f478afae4c78f5465fefeb467f0a54b8e.jpeg',
						title:'羽毛球教练',
						name:'娄泽康',
						value:"5",
						sex:1
					},
					{
						img:'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/b3363c35e7edec40e94996e9457cf66b3a9a8752.jpeg',
						title:'篮球教练',
						name:'沈栋',
						value:"5",
						sex:1
					},
					// {
					// 	img:'https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/ca6dd3377f27bdd76bd837a031e3e69f9e4b0cf3.jpeg',
					// 	title:'羽毛球教练',
					// 	name:'王震威',
					// 	value:"5",
					// 	sex:1
					// },
				],
			}
		},
		components:{
			uniRate
		},
		methods: {
			coach_center(item,index){
				uni.navigateTo({
					url:'/page_points/coach-center/coach-center'
				})
			},
			openDetail(){
				uni.navigateTo({
					url:'/pages/index/coach/coachDetail'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.control{
		width: 100%;
		min-height: 100vh;
		background-color: #ffffff;
		padding: 40rpx 30rpx 20rpx 30rpx;
		box-sizing: border-box;
		.top{
			/deep/ .u-image{
				height: auto !important; 
			}
		}
		.list{
			.item{
				width: 100%;
				padding-bottom: 24rpx;
				border-bottom: 1px solid #E5E5E5;
				margin-top: 31rpx;
				&:nth-of-type(1){
					.index{
						color: #FFA800;
					}
				}
				&:nth-of-type(2){
					.index{
						color: #C0C0C0;
					}
				}
				&:nth-of-type(3){
					.index{
						color: #B2786B;
					}
				}
				&:last-of-type{
					border: none;
				}
				.index{
					font-size: 36rpx;
					font-family: DIN;
					font-weight: bold;
					color: #95A0AF;
					margin-right: 40rpx;
				}
				.con{
					height: 100%;
					flex: 1;
					display: flex;
				}
				.image{
					width: 130rpx;
					height: 100%;
					margin-right: 24rpx;
					position: relative;
					.small{
						width: 100%;
						height: 80rpx;
						position: absolute;
						bottom: -20rpx;
						left: 0;
					}
				}
				.box{
					flex: 1;
					width: 0;
					.box-1{
						margin-bottom: 10rpx;
						.name{
							font-size: 28rpx;
							font-weight: bold;
							color: #333333;
						}
						/deep/ .u-tag{
							height: 40rpx;
							margin-left: 20rpx;
							.u-tag__text{
								font-size: 20rpx;
							}
						}
					}
					.box-2{
						margin-bottom: 10rpx;
						.tag{
							font-size: 22rpx;
							font-weight: 400;
							color: #FF8F05;
							margin-left: 20rpx;
						}
					}
					.box-3{
						font-size: 22rpx;
						font-weight: 400;
						color: #999999;
						white-space: nowrap;
						overflow: hidden;
						width: 100%;
						text-overflow: ellipsis;
					}
					.box-4{
						font-size: 22rpx;
						font-weight: 500;
						color: #333333;
					}
				}
			
			}
		}
	}
</style>
